
import requests
import json

Create_URL = "https://wiki.lmd.knogen.com:10443/goapi/storage/create"

with open('/tmp/mag_ret.json','rt')as f:
    data = json.load(f)

retData = []
for k,v in data.items():
    print(k)
    data = {
        "data":v,
        "path":f"Disruption_PowerLow_{k}"
    }
    ret = requests.post(Create_URL,json=data)
    print(ret.status_code)

    # 数据直接处理
    # retData.append(doc)


